package net.model.observer.jdk;

import java.util.Observer;

public class Test {

	public static void main(String[] args) {
		
		ConcreteSubject subject = new ConcreteSubject();
		Observer observer = new ConcreteObserver();
		subject.addObserver(observer);
		
		subject.sendNotify();
		subject.modifyState();
		
		subject.deleteObserver(observer);
	}
}
